
export const optionBar = {
  title: {
    show: false
  },
  grid: {
    right: 0,
    bottom: 20,
    top: 35,
    left: 30
  },
  legend: {
    show: false
  },
  xAxis: {
    data: [],
    // data: ['金融业', '制造业', '服务业', '保险业', '旅游业', '建筑业'],
    axisLine: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },

    axisTick: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisLabel: {
      style: {
        fill: '#fff',
        fontSize: 10,
        rotate: 0
      }
    }
  },
  yAxis: {
    name: '数量 / 人数',
    data: 'value',
    min: 0,
    splitLine: {
      show: false
    },
    nameTextStyle: {
      fill: '#fff',
      fontSize: 10
    },
    axisLine: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisTick: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisLabel: {
      style: {
        fill: '#fff',
        fontSize: 10,
        rotate: 0
      }
    }
  },
  series: [
    {
      name: '行业类别',
      data: [],
      // data: [120, 60, 80, 40, 90, 130],
      type: 'bar'
      // shapeType: 'rightEchelon'
    }
  ]
}
export const optionPie = {
  title: {
    show: false
    // text: '畅销饮料占比饼状图'
  },
  grid: {
    right: 0,
    bottom: 0,
    left: 0
  },
  series: [
    {
      type: 'pie',
      data: [
        // { name: '金融业', value: 93 },
        // { name: '制造业', value: 32 },
        // { name: '服务业', value: 32 },
        // { name: '保险业', value: 32 },
        // { name: '旅游业', value: 32 },
        // { name: '建筑业', value: 32 }
      ],
      insideLabel: {
        show: true,
        formatter: '{percent}%'
      },
      outsideLabel: {
        show: true,
        labelLineEndLength: 0
      }
    }
  ]
}

export const optionLine = {
  title: {
    show: false
  },
  grid: {
    right: 0,
    bottom: 30,
    top: 35,
    left: 30
  },
  legend: {
    data: ['产值', '税收'],
    top: 25,
    left: 100,
    textStyle: {
      fontFamily: 'Arial',
      fontSize: 13,
      fill: '#fff'
    }
  },
  xAxis: {
    name: '',
    data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
    axisLine: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisTick: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisLabel: {
      style: {
        fill: '#fff',
        fontSize: 10,
        rotate: 0
      }
    }
  },
  yAxis: {
    name: '数量 / 万元',
    data: 'value',
    min: 0,
    splitLine: {
      show: false
    },
    nameTextStyle: {
      fill: '#fff',
      fontSize: 10
    },
    axisLine: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisTick: {
      style: {
        stroke: '#fff',
        lineWidth: 1
      }
    },
    axisLabel: {
      style: {
        fill: '#fff',
        fontSize: 10,
        rotate: 0
      }
    }
  },
  series: [
    {
      name: '产值',
      data: [20, 30, 60, 40, 10, 45, 30, 30, 60, 40, 10, 45],
      type: 'line',
      fill: {
        show: true
      },
      lineArea: {
        show: true,
        gradient: ['rgba(0,216,255,1)', 'rgba(55, 162, 218, 0)']
      }
    },
    {
      name: '税收',
      data: [20, 30, 60, 40, 10, 45, 30, 40, 10, 45, 30, 45].reverse(),
      type: 'line',
      stack: 'a',
      smooth: true,
      lineArea: {
        show: true,
        gradient: ['rgba(0,245,208,1)', 'rgba(55, 162, 218, 0)']
      }
    }
  ]
}
